<template>
  <div>
    <el-container>
      <el-header>
        <Header></Header>
      </el-header>
      <div class="hr"></div>
      <el-main>
        <keep-alive>
          <router-view></router-view>
        </keep-alive>
      </el-main>
      <el-footer>
        <Footer></Footer>
      </el-footer>
    </el-container>
  </div>
</template>

<script>
  import Header from "../components/Header"
  import Footer from "../components/Footer"

  export default {
    name: "index",
    components: {
      Header,
      Footer,
    }
  }
</script>

<style scoped lang="less">
  .el-container {
    padding: 0;

    .el-header {
      background: #212121;
      height: 50px !important;
    }

    .el-main {
      margin: auto;
      width: 1000px;
      min-height: 60vh;
    }

    .el-footer {
      width: 100%;
      padding: 0;
    }
  }

  .hr {
    width: 100%;
    height: 2px;
    box-shadow: 0 -1px 2px #fff, 0 2px 1px #000;
  }

</style>
